package com.geek.javase.ch03.test1;

/*
 *@author wangpeng
 *2025/10/12 19:39
 *@description TODO
 */
/*
1).Employee类有姓名，薪资属性
2).EmployeeUtil 工具类中，有涨工资bonus(Employee e)的方法（要求方法静态）；
若获得到的薪资>10000，则涨薪水20%，否则涨薪10%。
*/
public class Employee {
    //属性
    private String name;
    private double salary;
    //无参构造
    public Employee(){
    }
    //有参构造
    public Employee(String name,double salary) {
        this.salary = salary;
        this.name = name;
    }
    public String getName() {
        return name;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public void setName(String name) {
        this.name = name;
    }
}
